package stylistcrm.core.services.user.service;

import stylistcrm.core.query.ResultPagerModel;
import stylistcrm.core.services.order.exception.BizException;
import stylistcrm.core.services.user.requisition.QueryRequisitionConditionDto;
import stylistcrm.core.services.user.requisition.RequisitionDto;

import java.util.List;

/**
 * Created by cheny on 2016/10/17.
 */
public interface RequisitionService {

    /**
     * 注册申请单
     * @param requisitionDto
     * @return
     * @throws BizException
     */
    Boolean registerRequisition(RequisitionDto requisitionDto) throws BizException;

    /**
     * 获取用户申请审核列表
     * @param queryCondition
     * @return
     * @throws BizException
     */
    ResultPagerModel<RequisitionDto> getRequisitionAuditList(QueryRequisitionConditionDto queryCondition) throws BizException;

    /**
     * 获取用户申请详情
     * @param pkId 主键id
     * @return
     * @throws BizException
     */
    RequisitionDto getRequisitionDetail(Long pkId) throws BizException;

    /**
     * 申请单审核
     * @param pkId
     * @return
     * @throws BizException
     */
    Boolean requisitionAudit(Long pkId,Boolean isPassed,String message) throws BizException;
}
